package com.byx.chatserver;

import com.byx.chatserver.listener.ServerCloseListener;
import com.byx.chatserver.listener.ServerStartListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author Superb
 */
@SpringBootApplication
public class ChatServerApplication {
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(ChatServerApplication.class);
        springApplication.addListeners(new ServerStartListener(),new ServerCloseListener());
        springApplication.run(args);
    }
}
